import { request } from "@/utils/service"
import type { UsersResponseData } from "./types/user"

export function users(data: any) {
  return request<UsersResponseData>({
    url: "users",
    method: "post",
    data
  })
}

export function upsert(data: any) {
  return request({
    url: "user",
    method: "post",
    data
  })
}
